import {Link, useRoutes} from "react-router-dom";
import router from "./router"

function App() {
  const outlet = useRoutes(router)

  return (
    <div className="APP">
        {/*顶级组件*/}
        {/*<Link to="/home">Home</Link> |*/}
        {/*<Link to="/about">About</Link> |*/}
        {/*占位符窗口，用来展示组件，类似于vue的router-view*/}
        {outlet}
    </div>
  )
}

export default App
